package com.baize.minespace.service.impl;

import com.baize.minespace.mapper.UsersMapper;
import com.baize.minespace.pojo.Users;
import com.baize.minespace.service.UsersService;
import com.baize.minespace.utils.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author baize
 * @since 2024-04-15
 * @version ${cfg.version}
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements UsersService {
    @Override
    public Result<IPage<Users>>selectUsersPage(Integer rows,Integer page,Users users){
        Page<Users> usersPage=new Page<>(rows,page);
        IPage<Users> usersIPage=baseMapper.selectUsersPage(usersPage, users);
        return Result.success(usersIPage);
    }
}
